﻿using Domain.Entities.SlimmingAssistants;
using FrameworkCore.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AiBLSmartEdu.Module.AISlimmingAssistant.API.DTOs
{
    /// <summary>
    /// 填写信息
    /// </summary>
    [Map(typeof(SlimmingAssistant))]
    public class SlimmingAssistantCreateInputModel
    {
        /// <summary>
        /// 性别 女：0；男：1
        /// </summary>
        [Required]
        public Gender Gender { get; set; }

        /// <summary>
        /// 年龄
        /// </summary>
        [Required]
        [Display(Name = "年龄")]
        [Range(1, int.MaxValue, ErrorMessage = "{0}必须大于0。")]
        public int Age { get; set; }

        /// <summary>
        /// 身高（CM）
        /// </summary>
        [Required]
        [Display(Name = "身高（CM）")]
        [Range(0.0001, double.MaxValue, ErrorMessage = "{0}必须大于0。")]
        public double Height { get; set; }

        /// <summary>
        /// 体重（千克）
        /// </summary>
        [Required]
        [Display(Name = "体重（千克）")]
        [Range(0.0001, double.MaxValue, ErrorMessage = "{0}必须大于0。")]
        public double Weight { get; set; }
    }
}
